#!/bin/bash
##系统版本判断
osBit=`getconf LONG_BIT`
if [ "${osBit}" != '64' ];then
	echo "抱歉,暂时不支持32位系统"
	exit 32
fi
os_ver=`awk -F= '/^NAME/{print $2}' /etc/os-release | sed 's/"//g'| awk '{print $1}'`
if [[ "$os_ver" -eq "Centos" ]];then
	s=`sudo awk '{print $4}' /etc/redhat-release | cut -b 1`
	export centos_ver=${s}
	echo "the system is centos${centos_ver}"
fi
